<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	    <link rel="stylesheet" type="text/css" href="<?php echo $base_url ;?>css/style2.css" />
        <title><?php echo $company_name; ?> &middot; <?php echo $this->lang->line('heading_title'); ?></title>
		
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $base_url; ?>js/jquery.blockUI.js"></script>
<script language="javascript">
		$.noConflict();
		var __base_url   = '<?=base_url()?>';
		var __csrf       = '<?=$this->security->get_csrf_hash();?>';
		var __locale     = '<?php echo str_replace("'","\'",json_encode($locale));?>';
		var __ts		 = <?php echo time(); ?>;
		var __ref	 	 = '<?php echo $ref; ?>';
</script>

<?php
		$opts = read_options('', 'OBJECT');
?>
<style type="text/css">
	.error_descr {
			font-weight:bold;
			color:red;
			display:none;
			padding:0;
			margin:0;
	}
	form tr.error{
		background-color: #FFDFDF !important;
		margin-bottom:3px !important;
	}
	#registration-form .button a {
			cursor: pointer;
			margin: 8px 0px 0px 8px;
			width: 249px;
			height: 55px;
			line-height: 50px;
			font-size: 20px;
			font-weight: bold;
			display: block;
			border: 1px solid <?=(@$opts->color_reg_button_border && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_button_border) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_button_border))) ? $opts->color_reg_button_border : ''?>;
			padding: 0px;
			background-color: <?=(@$opts->color_reg_button_bg && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_button_bg) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_button_bg))) ? $opts->color_reg_button_bg : ''?>;
			color: rgb(255, 255, 255);
			text-shadow: 0px -1px 1px rgb(51, 86, 135);
			border-radius: 50px 50px 50px 50px;
			box-shadow: 0px 1px 0px rgb(154, 172, 191), 0px 1px 0px rgb(35, 217, 255) inset;
			filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='<?=(@$opts->color_reg_button_gradient_from && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_button_gradient_from) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_button_gradient_from))) ? $opts->color_reg_button_gradient_from : ''?>', endColorstr='<?=(@$opts->color_reg_button_gradient_to && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_button_gradient_to) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_button_gradient_to))) ? $opts->color_reg_button_gradient_to : ''?>'); /* for IE */
			background-image: -webkit-gradient(linear, center top, center bottom, from(<?=(@$opts->color_reg_button_gradient_from && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_button_gradient_from) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_button_gradient_from))) ? $opts->color_reg_button_gradient_from : ''?>), to(<?=(@$opts->color_reg_button_gradient_to && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_button_gradient_to) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_button_gradient_to))) ? $opts->color_reg_button_gradient_to : ''?>)); /* for webkit browsers */
			background-image: -moz-linear-gradient(center top, <?=(@$opts->color_reg_button_gradient_from && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_button_gradient_from) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_button_gradient_from))) ? $opts->color_reg_button_gradient_from : ''?> 0px, <?=(@$opts->color_reg_button_gradient_to && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_button_gradient_to) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_button_gradient_to))) ? $opts->color_reg_button_gradient_to : ''?> 100%);
			text-decoration: none;
			text-align: center;
			text-transform:uppercase;
	}
</style>

<style type="text/css">@import url("https://themes.googleusercontent.com/fonts/css?kit=wAPX1HepqA24RkYW1AuHYA");ol{margin:0;padding:0}p{margin:0}.c5{vertical-align:middle;width:332.8pt;border-style:solid;border-color:#000000;border-width:1pt;padding:0pt 3.8pt 0pt 3.8pt}.c20{vertical-align:top;width:442.8pt;border-style:solid;border-color:#000000;border-width:1pt;padding:0pt 5.4pt 0pt 5.4pt}.c2{line-height:1.125;height:11pt;text-align:right;direction:ltr;padding-bottom:0pt}.c22{line-height:1.375;padding-top:0pt;padding-bottom:0pt}.c7{color:#288bcb;font-size:9pt;text-decoration:underline}.c1{line-height:1.0;direction:ltr;padding-bottom:0pt}.c4{line-height:1.125;direction:ltr;padding-bottom:12pt}.c15{width:468pt;background-color:#ffffff;padding:72pt 72pt 72pt 72pt}.c17{color:#0000cc;font-size:10pt;text-decoration:underline}.c0{color:#666666;font-size:9pt}.c9{color:#0000ff;text-decoration:underline}.c6{font-size:12pt;font-weight:bold}.c12{line-height:1.125;padding-bottom:13.5pt}.c13{color:inherit;text-decoration:inherit}.c11{line-height:1.125;padding-bottom:0pt}.c21{color:#98732b;font-size:13pt}.c14{margin-left:36pt}.c23{height:18pt}.c19{font-weight:bold}.c8{direction:ltr}.c18{border-collapse:collapse}.c3{height:11pt}.c16{font-size:12pt}.c10{height:0pt}body{color:#000000;font-size:11pt;font-family:Calibri}h1{padding-top:12pt;line-height:1.15;text-align:left;color:#000000;font-size:16pt;font-family:Arial;font-weight:bold;padding-bottom:3pt}h2{padding-top:5pt;line-height:1.0;text-align:left;color:#000000;font-size:18pt;font-family:Times New Roman;font-weight:bold;padding-bottom:5pt}h3{padding-top:12pt;line-height:1.15;text-align:left;color:#000000;font-size:13pt;font-family:Arial;font-weight:bold;padding-bottom:3pt}h4{padding-top:12pt;line-height:1.15;text-align:left;color:#000000;font-size:14pt;font-family:Calibri;font-weight:bold;padding-bottom:3pt}h5{padding-top:12pt;line-height:1.15;text-align:left;color:#000000;font-style:italic;font-size:13pt;font-family:Calibri;font-weight:bold;padding-bottom:3pt}h6{padding-top:12pt;line-height:1.15;text-align:left;color:#000000;font-size:11pt;font-family:Calibri;font-weight:bold;padding-bottom:3pt}</style>

<link type="text/css" href="<?php echo $base_url ;?>css/dynamic.css" rel="Stylesheet" />
		
	</head>
	<body>
		<table width="966" cellpadding="0" cellspacing="0" border="0" align="center">
			<tr>
				<td>
					<div id="header">
						<div class="h_item logo">
							<a href="/">
								<img src="<?php echo $base_url ;?>images/<?=$opts->logo?>" width="<?=$opts->logo_width?$opts->logo_width:'199'?>" height="<?=$opts->logo_height?$opts->logo_height:'58'?>" alt="" />
							</a>
						</div>
						
						<div id="topMenu">
	                        
						</div>
					</div>
					<div id="middle">
						<table cellpadding="0" cellspacing="0" border="0" width="100%">

							<tr valign="top">
								
								<td id="content">
			                        
<link rel="stylesheet" type="text/css" href="<?=$base_url?>css/registration.css" />


<table align="center" width="534" height="400">
	<tr>
		<td valign="top">
			<h1>Registration</h1>
            <p>
			<?php
					$tpl_page 	= new Tpl_page(); $tpl_page->where('type','partner_registration')->get(1);
					if($tpl_page->exists()) echo str_replace(array('&lt;','&gt;'),array('<','>'),$tpl_page->content);
			?>      
            </p>
			<p><br/>
				<b>All the fields are mandatory!</b>
				<p style="color:#FF3333;"></p>
			</p>
			
			<div id="regHelper"></div>

			<style type="text/css">
					form.registrationForm table {
								
					}
					form.registrationForm table tr td:first-child{
							width:30%;	
					}
					form.registrationForm table tr td:last-child{
							width:70%;	
					}
					select,input {
							max-width:45%;	
					}
			</style>
			<form action="" method="post" id="registration-form" name="registration-form" class="registrationForm">
				<div class="regBlock">
					<div class="title">
						<div class="num" style="<?=(@$opts->color_reg_title_num_bg_color && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_title_num_bg_color) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_title_num_bg_color))) ? 'background-color:'.$opts->color_reg_title_num_bg_color.';' : ''?>">1</div>
						<div class="bbottom" style="<?=(@$opts->color_reg_title_bottom_border_color && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_title_bottom_border_color) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_title_bottom_border_color))) ? 'border-bottom-color:'.$opts->color_reg_title_bottom_border_color.';' : ''?>">
							<div class="caption" style="<?=(@$opts->color_reg_title_caption_bg_color && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_title_caption_bg_color) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_title_caption_bg_color))) ? 'background-color:'.$opts->color_reg_title_caption_bg_color.';' : ''?>">Personal data</div>
						</div>
					</div>
					
					<table >
						<tr id="form-item_title">
							<td style="width:30%"><?php echo $this->lang->line('label_title'); ?></td>
							<td>
								<select id="title" style="">
									<option value=""><?php echo $this->lang->line('select_choose'); ?>...</option>
								</select>
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_firstname">
							<td><?php echo $this->lang->line('label_firstname'); ?></td>
							
							<td >
								<input id="firstname" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_lastname">
							<td><?php echo $this->lang->line('label_lastname'); ?></td>
							
							<td >
								<input id="lastname" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_country">
							<td><?php echo $this->lang->line('label_country'); ?></td>
							
							<td >
								<select id="country" class="field select" style="">
									<option value=""><?php echo $this->lang->line('select_choose'); ?>...</option>
								</select> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_email">
							<td><?php echo $this->lang->line('label_email'); ?></td>
							
							<td >
								<input id="email" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_password">
							<td><?php echo $this->lang->line('label_password'); ?></td>
							
							<td >
								<input id="password" class="field text medium" type="password" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr>
							<td>&nbsp;&nbsp;</td>
							
							<td >
								<span style="color:#ff0000;">Attention! Password must be rather complex, 5 to 15 characters long, and it must contain at least two of three character types: lowercase, uppercase, or digits.</span>
							</td>
						</tr>
						<tr id="form-item_password2">
							<td><?php echo $this->lang->line('label_confirm_password'); ?></td>
							
							<td >
								<input id="password2" class="field text medium" type="password" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_phone">
							<td><?php echo $this->lang->line('label_phone'); ?></td>
							
							<td >
								<input id="phone" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_address1">
							<td><?php echo $this->lang->line('label_address1'); ?></td>
							
							<td >
								<input id="address1" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_address2">
							<td><?php echo $this->lang->line('label_address2'); ?></td>
							
							<td >
								<input id="address2" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_city">
							<td><?php echo $this->lang->line('label_city'); ?></td>
							
							<td >
								<input id="city" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_state">
							<td><?php echo $this->lang->line('label_state'); ?></td>
							
							<td >
								<input id="state" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_citizenship">
							<td><?php echo $this->lang->line('label_citizenship'); ?></td>
							
							<td >
								<select id="citizenship" class="field select" style="">
									<option value=""><?php echo $this->lang->line('select_choose'); ?>...</option>
								</select> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_nid">
							<td><?php echo $this->lang->line('label_passport_id'); ?></td>
							
							<td >
								<input id="nid" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_date_of_birth">
							<td><?php echo $this->lang->line('label_date_of_birth'); ?></td>
							
							<td width="100%">
								<select id="dob_day" class="field select" style="width:30%;">
									<option value=""><?php echo $this->lang->line('label_dob_day'); ?>...</option>
									<?php
										for($i=1;$i<=31;$i++)
										{
												echo  "\n\t\t\t<option value=\"".$i."\">".($i>=10?$i:'0'.$i)."</option>";
										}
									?>
								</select>
								<select id="dob_month" class="field select" style="width:35%;">
									<option value=""><?php echo $this->lang->line('label_dob_month'); ?>...</option>
									<?php
										$months = $this->lang->line('months_list');
										for($i=0;$i<count($months);$i++)
										{
												echo  "\n\t\t\t<option value=\"".($i+1)."\">".$months[$i]."</option>";
										}
									?>
								</select>
								<select id="dob_year" class="field select" style="width:30%;">
										<option value=""><?php echo $this->lang->line('label_dob_year'); ?>...</option>
										<?php
											for($i=date("Y")-18;$i>date("Y")-100;$i--)
											{
													echo  "\n\t\t\t<option value=\"".($i+1)."\">".$i."</option>";
											}
										?>
								</select>
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_business">
							<td><?php echo $this->lang->line('label_business'); ?></td>
							
							<td >
								<input id="business" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						</table>
						<p>&nbsp;</p>
						
					<div class="title">
						<div class="num" style="<?=(@$opts->color_reg_title_num_bg_color && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_title_num_bg_color) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_title_num_bg_color))) ? 'background-color:'.$opts->color_reg_title_num_bg_color.';' : ''?>">2</div>
						<div class="bbottom" style="<?=(@$opts->color_reg_title_bottom_border_color && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_title_bottom_border_color) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_title_bottom_border_color))) ? 'border-bottom-color:'.$opts->color_reg_title_bottom_border_color.';' : ''?>">
							<div class="caption" style="<?=(@$opts->color_reg_title_caption_bg_color && (preg_match('#\#[a-fA-F0-9]{3,6}#i', $opts->color_reg_title_caption_bg_color) OR preg_match('#rgb\([0-9]{3},\s*[0-9]{3},\s*[0-9]{3}\)#i', $opts->color_reg_title_caption_bg_color))) ? 'background-color:'.$opts->color_reg_title_caption_bg_color.';' : ''?>"><?=$this->lang->line('label_additional_info');?></div>
						</div>
					</div>
					<table >
						<tr id="form-item_exp_forex">
							<td><?=$this->lang->line('label_exp_forex');?></td>
							
							<td >
								<select id="exp_forex" class="field select" style="">
									<option value=""></option>
										<?php
											$items = $this->lang->line('forex_exp_list');
											for($i=0;$i<count($items);$i++)
											{
													echo  "\n\t\t\t<option value=\"".$items[$i]."\">".$items[$i]."</option>";
											}
										?>
								</select> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr>
							<td colspan="2">&nbsp;</td>
						</tr>
						<tr id="form-item_customers_monthly">
							<td><?=$this->lang->line('label_customers_monthly');?></td>
							
							<td >
								<input type="text" id="customers_monthly" name="customers_monthly" />
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr>
							<td colspan="2">&nbsp;</td>
						</tr>

						<tr id="form-item_total_accts">
							<td><?=$this->lang->line('label_total_accts');?></td>
							
							<td >
								<input type="text" id="total_accts" name="total_accts" />
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr>
							<td colspan="2">&nbsp;</td>
						</tr>
						<tr id="form-item_total_clients_funds">
							<td><?=$this->lang->line('label_total_clients_funds');?></td>
							
							<td >
								<input type="text" id="total_clients_funds" name="total_clients_funds" />
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr>
							<td colspan="2">&nbsp;</td>
						</tr>
						<tr id="form-item_broker_relation">
							<td><?=$this->lang->line('label_broker_relation');?></td>
							
							<td >
								<input type="text" id="broker_relation" name="broker_relation" />
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_clients_countries">
							<td><?=$this->lang->line('label_clients_countries');?></td>
							
							<td >
								<select multiple="multiple" size="10" id="clients_countries" class="field select" style="">
									<option value=""></option>
								</select> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_website">
							<td><?=$this->lang->line('label_website');?></td>
							
							<td >
								<input type="text" id="website" name="website" />
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_promo_material">
							<td><?=$this->lang->line('label_promo_material');?></td>
							
							<td >
								<textarea id="promo_material" name="promo_material" cols="25" rows="4"></textarea>
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_promo_method">
							<td><?=$this->lang->line('label_promo_method');?></td>
							<td >
								<textarea id="promo_method" name="promo_method" cols="25" rows="4"></textarea>
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="form-item_other_info">
							<td><?=$this->lang->line('label_other_info');?></td>
							
							<td >
								<textarea id="other_info" name="other_info" cols="25" rows="4"></textarea>
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr>
							<td colspan="3">&nbsp;</td>
						</tr>
						<tr id="form-item_agree_terms">
								<td colspan="3">
									<label><input class="cbx agree" type="checkbox" name="agree_terms" id="agree_mirror" />&nbsp;&nbsp;<?=preg_replace('#\{link\}#',base_url().'partners-terms-of-business/',$this->lang->line('label_agree_terms'));?></label>
									<p class="error_descr"></p>
									<br/><br/>
								</td>
						</tr>
						<tr id="form-item_referral">
							<td>Referral Name &amp; account no.</td>
							<td colspan="2">
								<input id="referral" name="referral" class="field text medium" type="text" maxlength="255" value=""/> 
								<p class="error_descr"></p>
							</td>
						</tr>
						<tr id="">
								<td colspan="3">
								<div style="text-align:center; margin-top:10px;">
											<!--<div class="submit button"><a id="bt-register">Register</a></div>-->
											<div><a id="bt-register" style="cursor:pointer;"><img width="99px" height="38px" src="<?=$base_url?>images/isc-signup-button.png" /></a></div>
								</div>
								<p class="error_descr"></p>
								</td>
						</tr>	
					</table>
					
				</div>
				
				<br class="clear" />
			</form>
		</td>
	</tr>
</table>




								</td>
							</tr>
						</table>
					</div>
					<?php
						$tpl_page 	= new Tpl_page(); $tpl_page->where('type','footer')->get(1);
						if($tpl_page->exists()) echo $tpl_page->content;
					?>
				</td>
			</tr>
		</table>
		
<script src="<?php echo $base_url; ?>js/validation.js"></script>
<script src="<?php echo $base_url; ?>js/users.js"></script>
<script src="<?php echo $base_url; ?>js/userdata.js"></script>
<script language="javascript">
		jQuery(document).ready(function() {
				var _obj_local = jQuery.parseJSON(__locale);
				GolderMarkets.UserData.Populate(_obj_local.lang,'title','title','');
				GolderMarkets.UserData.Populate(_obj_local.lang,'country','country','');
				GolderMarkets.UserData.Populate(_obj_local.lang,'country','citizenship','');
				GolderMarkets.UserData.Populate(_obj_local.lang,'country','clients_countries','');
				
				jQuery('#bt-register').click(function(event) {
						event.preventDefault();
						GolderMarkets.Users.PartnerRegister();
						return false;
				});
				jQuery('#registration-form').submit(function() {
						GolderMarkets.Users.PartnerRegister();
						return false;
				});
		});
</script>		

	</body>
</html>
